package com.eas.yunzhijia.easTodo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by mao on 2017/9/17.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WSMessage {
    /**
     * bizType : {"alias":"工作流","name":"WORKFLOW","value":0}
     * body : 请处理员工张贺单据编号为LZD000047的离职单
     * context : {"aIS":"hrtest","caller":{"keyFields":[null],"keyValue":{},"objectType":{}},"contextID":"e25a9559-b3f2-45eb-b70c-cac742c581d8","locale":"l2","originLocale":"zh_CN","solution":"eas","userDefineFieldKeySet":[],"userDefineFields":[]}
     * msgID : OPUAAAABknGWI+tR
     * orgID : 11111111-1111-1111-1111-111111111111CCE7AED4
     * priority : {"alias":"中","name":"MIDDLE","value":10}
     * priorityAlias : 中
     * receiveTime : 1505788493364
     * receivers : 秦勇
     * recieveNumber : YG000056
     * recieverID : 0VAzo/HNSaafe6C+PDgvdRO33n8=
     * sendTime : 1505788493313
     * sender : 韩文博
     * sourceID : 3b13b17c-3e10-40a9-adb7-3a12c2b407e4WFWKITEM
     * state : {"alias":"未读","name":"UNREADED","value":0}
     * title : 请处理员工张贺单据编号为LZD000047的离职单
     * type : {"alias":"任务","name":"TASK","value":10}
     * url : http: //47.94.41.241: 6888/easweb/webviews/workflow/processcenter.jsp?waf2skin=eas
     */

    @JsonProperty(value = "bizType")
    private BizType bizType;
    private String body;
    private ContextBean context;
    @JsonProperty(value = "msgID")
    private String msgID;
    @JsonProperty(value = "orgID")
    private String orgID;
    private PriorityBean priority;
    @JsonProperty(value = "priorityAlias")
    private String priorityAlias;
    @JsonProperty(value = "receiveTime")
    private String receiveTime;
    private String receivers;
    @JsonProperty(value = "recieveNumber")
    private String recieveNumber;
    @JsonProperty(value = "recieverID")
    private String recieverID;
    @JsonProperty(value = "sendTime")
    private String sendTime;
    private String sender;
    @JsonProperty(value = "sourceID")
    private String sourceID;
    private StateBean state;
    private String title;
    private TypeBean type;
    private String url;

//    //消息ID
//    private String msgID;
//
//    //消息标题
//    private String title;
//
//    //消息内容
//    private String body;
//
////    //优先级
////    private MsgPriority priority;
//
//    //发送时间
//    private Timestamp sendTime;
//
//    //接受时间
//    private Timestamp receiveTime;
//
//    //源业务对象ID
//    private String sourceID;
//
//    //接收者名字
//    private String receivers;
//
////    //消息状态
////    private MsgStatus state;
//
////    //消息类型（大类）
////    private MsgType type;
////
////    //消息类型（小类）
////    private MsgBizType bizType;
//
//    //发送者名字
//    private String sender;
//
//    //EAS portal消息中心的url
//    private String url;
//
//    //接收人ID
//    private String recieverID;
//
//    //组织ID
//    private String OrgID;





}
